<template>
  <div id="app">
    <router-view/>
  </div>
</template>

<script>
  let Base64 = require('js-base64').Base64
  export default {
    name: 'App',
    created () {
      //在页面加载时读取localStorage里的状态信息
      // if (localStorage.getItem("store") ) {
      //   this.$store.replaceState(Object.assign({ }, this.$store.state, JSON.parse(Base64.decode(localStorage.getItem("store")))))
      // }

      //在页面刷新时将vuex里的信息保存到localStorage里
      // window.addEventListener("beforeunload", () => {
      //   localStorage.setItem("store", Base64.encode((JSON.stringify(this.$store.state))))
      // })
    }
  }
</script>

<style lang="scss">
  // @import "../static/scss/common";
  // @import "../static/scss/element-custom";
  * {
    margin: 0;
    padding: 0;
    font-family:Microsoft YaHei;
  }
  html, body {
    width: 100%;
    height: 100%;
  }
  ul{
    list-style: none;
  }
  .w100 {
    width: 100%;
  }
  .h100 {
    height: 100%;
  }
 #app {
   height: 100%;
  //  font-family: "Microsoft YaHei";
 }
 .BMap_stdMpCtrl.BMap_stdMpType3.BMap_noprint.anchorBR {
    bottom: 80px !important;
  }
</style>
